package com.ruoyi.healthCard.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.healthCard.mapper.TBizHealthCertificateMapper;
import com.ruoyi.healthCard.domain.TBizHealthCertificate;
import com.ruoyi.healthCard.service.ITBizHealthCertificateService;

/**
 * 健康证Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-25
 */
@Service
public class TBizHealthCertificateServiceImpl implements ITBizHealthCertificateService 
{
    @Autowired
    private TBizHealthCertificateMapper tBizHealthCertificateMapper;

    /**
     * 查询健康证
     * 
     * @param certId 健康证主键
     * @return 健康证
     */
    @Override
    public TBizHealthCertificate selectTBizHealthCertificateByCertId(Long certId)
    {
        return tBizHealthCertificateMapper.selectTBizHealthCertificateByCertId(certId);
    }

    /**
     * 查询健康证列表
     * 
     * @param tBizHealthCertificate 健康证
     * @return 健康证
     */
    @Override
    public List<TBizHealthCertificate> selectTBizHealthCertificateList(TBizHealthCertificate tBizHealthCertificate)
    {
        return tBizHealthCertificateMapper.selectTBizHealthCertificateList(tBizHealthCertificate);
    }

    /**
     * 新增健康证
     * 
     * @param tBizHealthCertificate 健康证
     * @return 结果
     */
    @Override
    public int insertTBizHealthCertificate(TBizHealthCertificate tBizHealthCertificate)
    {
        return tBizHealthCertificateMapper.insertTBizHealthCertificate(tBizHealthCertificate);
    }

    /**
     * 修改健康证
     * 
     * @param tBizHealthCertificate 健康证
     * @return 结果
     */
    @Override
    public int updateTBizHealthCertificate(TBizHealthCertificate tBizHealthCertificate)
    {
        return tBizHealthCertificateMapper.updateTBizHealthCertificate(tBizHealthCertificate);
    }

    /**
     * 批量删除健康证
     * 
     * @param certIds 需要删除的健康证主键
     * @return 结果
     */
    @Override
    public int deleteTBizHealthCertificateByCertIds(Long[] certIds)
    {
        return tBizHealthCertificateMapper.deleteTBizHealthCertificateByCertIds(certIds);
    }

    /**
     * 删除健康证信息
     * 
     * @param certId 健康证主键
     * @return 结果
     */
    @Override
    public int deleteTBizHealthCertificateByCertId(Long certId)
    {
        return tBizHealthCertificateMapper.deleteTBizHealthCertificateByCertId(certId);
    }
}
